// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import BaseCharacterElement from "../BaseCharacterElement";
import BaseAttackState from "../States/BaseAttackState";
import Hero0IdleState from "./Hero0IdleState";
import Hero0RunState from "./Hero0RunState";

const { ccclass, property } = cc._decorator;

@ccclass
export default class Hero0Element extends BaseCharacterElement {

    protected onLoad(): void {
        super.onLoad();
        this.idleState = new Hero0IdleState(this, "run");
        this.runState = new Hero0RunState(this, "run");
        this.attackState = new BaseAttackState(this, "attack");
    }
}
